<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>中华传统文化-武术</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="renderer" content="webkit">
  <link rel="shortcut icon" href="./favicon.ico">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/index.css">
  <link rel="stylesheet" href="https://at.alicdn.com/t/font_2143783_iq6z4ey5vu.css">
  <script>
    // 检测 userAgent（浏览器信息）
    !(function () {
      const userAgent = navigator.userAgent
      // 验证是否为Android或iPhone
      const android = userAgent.match(/(Android);?[\s\/]+([\d.]+)?/)
      const iphone = userAgent.match(/(iPhone\sOS)\s([\d_]+)/)

      // 如果是Android或iPhone，则跳转至移动站点
      if (android || iphone) {
        location.href = 'http://m.itcast.cn'
      }

    })()
  </script>
</head>

<body>
  <!-- 项部导航 -->
  <div class="xtx_topnav">
    <div class="wrapper">
      <!-- 顶部导航 -->
      <ul class="xtx_navs">
        <li>
          <a href="./login.html">请先登录</a>
        </li>
        <li>
          <a href="./register.html">免费注册</a>
        </li>
        <li>
          <a href="./center-order.html">我的订单</a>
        </li>
        <li>
          <a href="./center.html">会员中心</a>
        </li>
        <li>
          <a href="javascript:;">帮助中心</a>
        </li>
        <li>
          <a href="javascript:;">在线客服</a>
        </li>
        <li>
          <a href="javascript:;">
            <i class="mobile sprites"></i>
            手机版
          </a>
        </li>
      </ul>
    </div>
  </div>
  <!-- 头部 -->
  <div class="xtx_header">
    <div class="wrapper">
      <!-- 网站Logo -->
      <h1 class="xtx_logo"><a href="/">中华武术</a></h1>
      <!-- 主导航 -->
      <div class="xtx_navs">
        <ul class="clearfix">
          <li>
            <a href="./index.html">首页</a>
          </li>
          <li>
            <a href="./category01.html">关于武术</a>
          </li>
          <li>
            <a href="./category01.html">赛事与培训</a>
          </li>
          <li>
            <a href="./category01.html">新闻咨询</a>
          </li>
          <!-- <li>
            <a href="./category01.html">会员中心</a>
          </li> -->
          <li>
            <a href="./category01.html">名人堂</a>
          </li>
          <!-- <li>
            <a href="./category01.html">政策法规</a>
          </li> -->
          <li>
            <a href="./category01.html">官方武术</a>
          </li>
          <li>
            <a href="./category01.html">认证查询</a>
          </li>
        </ul>
      </div>
      <!-- 站内搜索 -->
      <div class="xtx_search clearfix">
        <!-- 购物车 -->
        <a href="./cart-none.html" class="xtx_search_cart sprites">
          <i>2</i>
        </a>
        <!-- 搜索框 -->
        <div class="xtx_search_wrapper">
          <input type="text" placeholder="搜一搜">
        </div>
      </div>
    </div>
  </div>
  <!-- 分类及焦点图 -->
  <div class="xtx_entry">
    <div class="wrapper">
      <!-- 分类 -->
      <div class="xtx_category">
        <!-- 顶级分类 -->
        <ul class="xtx_category_super">
          <li class="active" data-id="0">
            <a href="javascript:;" data-id="0">
              太极拳
              <!-- <small>水果</small>
              <small>蔬菜</small> -->
            </a>
            <i class="sprites"></i>
          </li>
          <li data-id="1">
            <a href="javascript:;" data-id="1">
              八卦拳
              <!-- <small>面点</small>
              <small>干果</small> -->
            </a>
            <i class="sprites"></i>
          </li>
          <li data-id="2">
            <a href="javascript:;" data-id="2">
              通背拳
              <!-- <small>数码产品</small> -->
            </a>
            <i class="sprites"></i>
          </li>
          <li data-id="3">
            <a href="javascript:;" data-id="3">
              散打
              <!-- <small>床品</small>
              <small>四件套</small>
              <small>被枕</small> -->
            </a>
            <i class="sprites"></i>
          </li>
          <li data-id="4">
            <a href="javascript:;" data-id="4">
              少林拳
              <!-- <small>洗发洗护</small>
              <small>美妆</small> -->
            </a>
            <i class="sprites"></i>
          </li>
          <li data-id="5">
            <a href="javascript:;" data-id="5">
              咏春拳
              <!-- <small>奶粉</small>
              <small>玩具</small>
              <small>辅食</small> -->
            </a>
            <i class="sprites"></i>
          </li>
          <!-- <li>
            <a href="javascript:;">
              餐橱
              <small>数码产品</small>
            </a>
            <i class="sprites"></i>
          </li> -->
          <!-- <li>
            <a href="javascript:;">
              服饰
              <small>女装</small>
              <small>男装</small>
            </a>
            <i class="sprites"></i>
          </li>
          <li>
            <a href="javascript:;">
              杂货
              <small>户外</small>
              <small>图书</small>
            </a>
            <i class="sprites"></i>
          </li>
          <li>
            <a href="javascript:;">
              品牌
              <small>品牌制造</small>
            </a>
            <i class="sprites"></i>
          </li> -->
        </ul>
        <!-- 子分类 -->
        <!-- <div class="xtx_category_subset">

        </div> -->
      </div>

      <!-- 焦点图 -->
      <div class="xtx_banner">

        <ul>
          <!-- 太极拳 -->
          <!-- <li >
            <a href="javascript:;">
              <img src="./images/太极拳/1ea138306e3adf81c8a3307baf105404.jpeg" alt="">
            </a>
          </li> -->


          <!-- 八卦拳 -->
          <li class="bgc">
            <!-- <a href="javascript:;"> 
               <img src="./images/0883460918c3d5e2d7b2554bfbdb54fc.jpg" alt="" > -->
            <!-- </a>  -->
          </li>

          <!-- 通背拳 -->
          <!-- <li>
            <a href="javascript:;">
              <img src="./uploads/banner_1.png" alt="">
            </a>
          </li> -->

          <!-- 散打 -->
          <!-- <li>
            <a href="javascript:;">
              <img src="./uploads/banner_1.png" alt="">
            </a>
          </li> -->

          <!-- 少林拳 -->
          <!-- <li>
            <a href="javascript:;">
              <img src="./uploads/banner_1.png" alt="">
            </a>
          </li> -->

          <!-- 咏春拳 -->
          <!-- <li>
            <a href="javascript:;">
              <img src="./uploads/banner_1.png" alt="">
            </a>
          </li> -->
        </ul>

        <!-- 切换按钮  -->
        <a href="javascript:;" class="prev sprites"></a>
        <a href="javascript:;" class="next sprites"></a>


        <!-- 指示器 下方小小圆点 -->
        <div class="indicator">
          <span></span>
          <span class="active"></span>
          <span></span>
          <span></span>
          <span></span>
          <span></span>
        </div>

      </div>
    </div>
  </div>
  <!-- 关于武术 -->
  <div class="xtx_goods_new xtx_panel">
    <div class="wrapper">
      <!-- 面板头部 -->
      <div class="xtx_panel_header">
        <h3>武术<small>关于武术 相关内容</small></h3>
        <a href="./index-new.html" class="more">
          查看全部<i class="sprites"></i>
        </a>
      </div>
      <!-- 商品列表 -->
      <div class="xtx_panel_goods_1">
        <a href="javascript:;">
          <img src="" alt="">
          <span class="name">太极拳</span>
          <span class="price"><small>内外兼修、柔和、刚柔相济</small></span>
        </a>
        <a href="javascript:;">
          <img src="https://img2.baidu.com/it/u=3415622621,4069359929&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=1058" alt="">
          <span class="name">通背拳</span>
          <span class="price"><small>以柔为主，刚柔相济，注重放长击远</small></span>
        </a>
        <a href="javascript:;">
          <img src="https://img1.baidu.com/it/u=1781935182,3501660919&fm=253&fmt=auto&app=120&f=JPEG?w=868&h=800" alt="">
          <span class="name">散打</span>
          <span class="price"><small>徒手格斗，融合了踢、打、摔及防守</small></span>
        </a>
        <a href="javascript:;">
          <img src="https://img0.baidu.com/it/u=3896825094,3901204104&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750" alt="">
          <span class="name">咏春拳</span>
          <span class="price"><small>攻守兼备，使用寸劲进行进攻和防守</small></span>
        </a>
      </div>
    </div>
  </div>
  <!-- 名人堂 -->
  <div class="xtx_goods_popular xtx_panel">
    <div class="wrapper">
      <!-- 面板头部 -->
      <div class="xtx_panel_header">
        <h3>名人堂<small>人气爆表 不容错过</small></h3>
      </div>
      <!-- 商品列表 -->
      <div class="xtx_panel_goods_1">
        <a href="javascript:;">
          <img src="http://www.zgctws.org.cn/upload/video/20230804/e9c7034ac22942e68301239322fad275.jpg">
          <span class="title">霍元甲</span>
          <span class="alt">镖师家庭，“秘宗拳”绝技</span>
        </a>
        <a href="./index-hot.html">
          <img src="http://www.zgctws.org.cn/upload/video/20230804/4159b63fcdd86531b6f1294d611eb2b0.png">
          <span class="title">黄飞鸿</span>
          <span class="alt">三岁习武，习得虎拳、鹤拳</span>
        </a>
        <a href="./index-one.html">
          <img src="http://www.zgctws.org.cn/upload/video/20230804/5ccae406b2153b1ba9a5bd2f053ab6a5.png">
          <span class="title">王子平</span>
          <span class="alt">自幼习武，擅长查拳与太极</span>
        </a>
        <a href="javascript:;">
          <img src="http://www.zgctws.org.cn/upload/video/20230804/cb8dfe9798c5a097c06c147f0b693a58.png">
          <span class="title">蔡龙云</span>
          <span class="alt">中国武术泰斗、著名技击家</span>
        </a>
        
      </div>
    </div>
  </div>
  <!-- 热门赛事 -->
  <div class="xtx_goods_brand xtx_panel">
    <div class="wrapper">
      <div class="xtx_panel_header">
        <h3>赛事通知<small>热门赛事 等你参加</small></h3>
        <div class="page-bar">
          <a href="javascript:;" class="prev sprites"></a>
          <a href="javascript:;" class="next sprites active"></a>
        </div>
      </div>
      <!-- 商品列表 -->
      <div class="xtx_goods">
        <ul>
          <li>
            <a href="./index-brand.html">
              <img src="http://www.zgctws.org.cn/upload/goods/20231220/ac2a27f73f135b7974f970ea4122121e.png" alt="">
            </a>
            <a href="./brand-list.html">
              <img src="http://www.zgctws.org.cn/upload/goods/20230726/ca550537bc541c14b17e799c16104daa.jpg" alt="">
            </a>
            <a href="javascript:;">
              <img src="http://www.zgctws.org.cn/upload/goods/20230726/d65a64107485d17b7f46be2af48ab995.jpg" alt="">
            </a>
            <a href="javascript:;">
              <img src="http://www.zgctws.org.cn/upload/goods/20230506/46b9888fdfa48929aa1988874e8d4355.jpg" alt="">
            </a>
            <a href="javascript:;">
              <img src="http://www.zgctws.org.cn/upload/goods/20230425/83d159532baf16c92ee2bbf04c97c840.jpg" alt="">
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <div class="xtx_goods_category xtx_panel">
    <div class="wrapper">
      <!-- 太极拳 -->
      <div class="xtx_panel_header">
        <h3>太极拳</h3>
        <a href="javascript:;" class="more">
          查看全部<i class="sprites"></i>
        </a>
        <div class="tabs-bar">
          <a href="javascript:;" class="active">总览</a>
          <a href="javascript:;">陈氏太极拳</a>
          <a href="javascript:;">杨氏太极拳</a>
          <a href="javascript:;">武式太极拳</a>
          <a href="javascript:;">吴氏太极拳</a>
          <a href="javascript:;">孙式太极拳</a>
        </div>
      </div>
      <!-- 列表 -->
      <div class="xtx_panel_goods_2">
        <ul class="clearfix">
          <li style="background-image: url(https://img0.baidu.com/it/u=2458022978,826648924&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=752);  background-position: center; background-size: cover;  background-repeat :no-repeat;">
            <!-- <a href="javascript:;">
              <img src="https://img0.baidu.com/it/u=2458022978,826648924&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=752" alt=""> -->
            <!-- </a> -->
            <div class="label">
              <span>太极拳</span>
              <span>强身健体</span>
            </div>
          </li>
          <li>
            <!-- 商品图片 -->
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img1.baidu.com/it/u=1192122316,552553798&fm=253&fmt=auto&app=120&f=JPEG?w=1117&h=800" alt="">
              </div>
            </a>
            <!-- 商品信息 -->
            <div class="meta">
              <p class="name">武术——女子太极拳：中国选手陈小丽夺金/p>
              <p class="flag">女子太极拳</p>
              <!-- <p class="price"><small>￥</small>59</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img1.baidu.com/it/u=808920502,3089418020&fm=253&fmt=auto&app=120&f=JPEG?w=1175&h=800" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">武术套路——大学组男子自选太极拳赛况</p>
              <p class="flag">男子太极拳</p>
              <!-- <p class="price"><small>￥</small>71.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://pic.rmb.bdstatic.com/bjh/down/94e0c79eab76ecff198fbdebbf423707.jpeg" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">太极拳起源发展的思考</p>
              <p class="flag">太极拳的起源</p>
              <!-- <p class="price"><small>￥</small>49.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img0.baidu.com/it/u=3687789224,1768147443&fm=253&fmt=auto&app=120&f=JPEG?w=667&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">太极拳以柔克刚，以静待动，是一场平衡的较量</p>
              <p class="flag">以柔克刚</p>
              <!-- <p class="price"><small>￥</small>899</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=3384566073,2910036855&fm=253&fmt=auto&app=120&f=JPEG?w=712&h=465" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">一套太极拳，千百种练法，别太较真儿！ </p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>29</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img0.baidu.com/it/u=3174910780,2824347473&fm=253&fmt=auto&app=120&f=JPEG?w=1200&h=800" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">河南温县：传承国粹，“武”动校园 </p>
              <p class="flag">太极八卦</p>
              <!-- <p class="price"><small>￥</small>59</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=3723419169,3019434390&fm=253&fmt=auto&app=120&f=JPEG?w=760&h=494" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">20招陈式太极拳实战经典，不上擂台格斗，但防身自卫很管用</p>
              <p class="flag">陈式太极拳</p>
              <!-- <p class="price"><small>￥</small>39.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://p5.itc.cn/q_70/images03/20210829/8160e4fe3e984358bda5f3dcb53e029b.jpeg" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">太极拳演练的空间意识  </p>
              <p class="flag">太极演练</p>
              <!-- <p class="price"><small>￥</small>29.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
        </ul>
      </div>



      <!-- 服饰 -->
       <!-- 通背拳 -->
      <div class="xtx_panel_header">
        <h3>通背拳</h3>
        <a href="javascript:;" class="more">
          查看全部<i class="sprites"></i>
        </a>
        <div class="tabs-bar">
          <a href="javascript:;" class="active">总览</a>
          <a href="javascript:;">‌白猿通背</a>
          <a href="javascript:;">‌五行通背</a>
          <a href="javascript:;">‌少林通背</a>
          <a href="javascript:;">‌六合通背</a>
          <a href="javascript:;">太极通背</a>
          <!-- <a href="javascript:;">五猴通背</a> -->
        </div>
      </div>
      <!-- 商品列表 -->
      <div class="xtx_panel_goods_2">
        <ul class="clearfix">
          <li style="background-image: url(https://img2.baidu.com/it/u=3415622621,4069359929&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=1058);  background-position: center; background-size: cover;  background-repeat :no-repeat;">
            <a href="javascript:;">
              <!-- <img src="https://img2.baidu.com/it/u=3415622621,4069359929&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=1058" alt=""> -->
            </a>
            <div class="label">
              <span>通背拳</span>
              <span>放长击远</span>
            </div>
          </li>
          <li>
            <!-- 商品图片 -->
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=98944042,1142255259&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500" alt="">
              </div>
            </a>
            <!-- 商品信息 -->
            <div class="meta">
              <p class="name">少林武僧释延悦演练的少林通背拳_人民号</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>55</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img1.baidu.com/it/u=1762293054,1376364771&fm=253&fmt=auto&app=138&f=JPEG?w=888&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">大连五行通背拳名家徐洪富先生演练的通背十二连珠_人民号</p>
              <p class="flag">通背拳</p>
              <!-- <p class="price"><small>￥</small>20.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img1.baidu.com/it/u=4065001065,18773083&fm=253&fmt=auto&app=120&f=JPEG?w=667&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">通背拳发力</p>
              <p class="flag">通背拳力量</p>
              <!-- <p class="price"><small>￥</small>209</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=2977034259,2894720960&fm=253&fmt=auto?w=667&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">世界非物质文化遗产之一——通背拳</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>274.5</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img0.baidu.com/it/u=1981957489,2395206269&fm=253&fmt=auto&app=138&f=JPEG?w=752&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">魅力永年 | 传播太极文化,展示太极精髓_网易订阅</p>
              <p class="flag">通背拳</p>
              <!-- <p class="price"><small>￥</small>99</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img0.baidu.com/it/u=900465436,1733255307&fm=253&fmt=auto&app=120&f=JPEG?w=667&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">通背拳传人鸽武缘的防御力如何,是否能在扇巴掌大赛中所向披靡?</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>79</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img0.baidu.com/it/u=2531824585,1263180539&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">张喆五行通臂拳传人张春裕弟子郑荣庆演练连环拍掌式</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>179</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=3223369276,3213845325&fm=253&fmt=auto&app=120&f=JPEG?w=666&h=500g" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">通背拳日常</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>69</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
        </ul>
      </div>



      <!-- 餐厨 -->
       <!-- 散打 -->
      <div class="xtx_panel_header">
        <h3>散打</h3>
        <a href="javascript:;" class="more">
          查看全部<i class="sprites"></i>
        </a>
        <div class="tabs-bar">
          <a href="javascript:;" class="active">总览</a>
          <a href="javascript:;">‌拳法‌</a>
          <a href="javascript:;">‌腿法</a>
          <a href="javascript:;">‌摔法</a>
          <a href="javascript:;">初级</a>
          <a href="javascript:;">中级</a>
          <a href="javascript:;">高级</a>
        </div>
      </div>
      <!-- 商品列表 -->
      <div class="xtx_panel_goods_2">
        <ul class="clearfix">
          <li style="background-image: url(https://img1.baidu.com/it/u=583753624,2188650171&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=866);  background-position: center; background-size: cover;  background-repeat :no-repeat;">
            <a href="javascript:;">
              <!-- <img src="https://img1.baidu.com/it/u=583753624,2188650171&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=866" alt=""> -->
            </a>
            <div class="label">
              <span>散打</span>
              <span>徒手格斗</span>
            </div>
          </li>
          <li>
            <!-- 商品图片 -->
            <a href="javascript:;">
              <div class="img-box">
                <img src="" alt="">
              </div>
            </a>
            <!-- 商品信息 -->
            <div class="meta">
              <p class="name">学青会|男子散打郑州选手强势夺金_腾讯新闻</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>5.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=2129077667,1164157750&fm=253&fmt=auto&app=120&f=PNG?w=526&h=351" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">南昌市首届武术散打锦标赛圆满结束_青云谱区_场地_火花</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>20.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=1760622130,3088625109&fm=253&fmt=auto&app=120&f=JPEG?w=698&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">市青少年武术散打锦标赛落幕,参与人群趋于低龄化_比赛</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>129</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=716003566,2957999471&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">散打_儿童摄影作品_摄影作品</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>274.5</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=3144015329,37218684&fm=253&fmt=auto&app=138&f=JPEG?w=737&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">全运会散打明日开赛,河南队蓄势待发</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>29</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=4184937296,2444433784&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">散打腿技训练方法有哪些 -学路网-学习路上 有我相伴</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>10.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img0.baidu.com/it/u=482760664,3108914169&fm=253&fmt=auto&app=138&f=JPEG?w=1200&h=800" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">今日上午浙江省金华国际武术散打争霸赛在金华市体育馆隆重举... </p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>159</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img1.baidu.com/it/u=2649225591,381176748&fm=253&fmt=auto&app=138&f=JPEG?w=1067&h=800" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">武术散打 </p>
              <p class="flag">散打</p>
              <!-- <p class="price"><small>￥</small>22.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
        </ul>
      </div>


      <!-- 居家 -->
      <!-- 咏春拳 -->
      <div class="xtx_panel_header">
        <h3>咏春拳</h3>
        <a href="javascript:;" class="more">
          查看全部<i class="sprites"></i>
        </a>
        <div class="tabs-bar">
          <a href="javascript:;" class="active">总览</a>
          <a href="javascript:;">‌拳术‌</a>
          <a href="javascript:;">‌兵器</a>
          <a href="javascript:;">功法</a>
          <a href="javascript:;">咏春拳</a>
          <a href="javascript:;">洪拳</a>
          <a href="javascript:;">蔡李佛拳</a>
        </div>
      </div>
      <!-- 商品列表 -->
      <div class="xtx_panel_goods_2">
        <ul class="clearfix">
          <li style="background-image: url(https://img2.baidu.com/it/u=2024193170,3701459170&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=1098);  background-position: center; background-size: cover;  background-repeat :no-repeat;">
            <a href="javascript:;">
              <!-- <img src="https://img2.baidu.com/it/u=2024193170,3701459170&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=1098" alt=""> -->
            </a>
            <div class="label">
              <span>咏春拳</span>
              <span>快速-连贯</span>
            </div>
          </li>
          <li>
            <!-- 商品图片 -->
            <a href="javascript:;">
              <div class="img-box">
                <img src="" alt="">
              </div>
            </a>
            <!-- 商品信息 -->
            <div class="meta">
              <p class="name">咏春拳起手式</p>
              <p class="flag">咏春拳</p>
              <!-- <p class="price"><small>￥</small>8999</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=3628698606,4164627440&fm=253&fmt=auto&app=120&f=JPEG?w=527&h=351" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">国家级非物质文化遗产保护项目咏春拳代表性传承人,福建省咏..</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>65</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img0.baidu.com/it/u=1470295138,2979362676&fm=253&fmt=auto&app=120&f=JPEG?w=750&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">2024广东省咏春拳精英赛开幕</p>
              <p class="flag">咏春拳</p>
              <!-- <p class="price"><small>￥</small>129</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img1.baidu.com/it/u=4242516041,1330663379&fm=253&fmt=auto&app=138&f=JPEG?w=607&h=404" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">咏春拳中的连消带打理论怎么应用在实战中</p>
              <p class="flag">咏春拳</p>
              <!-- <p class="price"><small>￥</small>129</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=3185106183,4028445515&fm=253&fmt=auto&app=138&f=JPEG?w=796&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">【前线的全部作品】前线影像_太平洋电脑网摄影部落</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>29</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img0.baidu.com/it/u=2897574766,2146155754&fm=253&fmt=auto&app=138&f=JPEG?w=833&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">咏春拳是谁创始人(咏春拳创始人是哪位是男是女) - 币大师</p>
              <p class="flag">咏春拳</p>
              <!-- <p class="price"><small>￥</small>10.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img0.baidu.com/it/u=1264925090,4014001125&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">走进鹤山非遗(五) | 鹤山咏春拳_鹤山市人民政府门户网 </p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>159</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <div class="img-box">
                <img src="https://img2.baidu.com/it/u=936517402,3714639137&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="">
              </div>
            </a>
            <div class="meta">
              <p class="name">《咏春》巡演到福州,他们这样称赞…</p>
              <p class="flag"></p>
              <!-- <p class="price"><small>￥</small>22.9</p> -->
            </div>
            <!-- 其它 -->
            <div class="extra">
              <a href="javascript:;">
                <span>找相似</span>
                <!-- <span>发现现多宝贝&gt;</span> -->
                <span>发现更多内容&gt;</span>
              </a>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <!-- 最新主题 -->
  <div class="xtx_goods_topic xtx_panel">
    <div class="wrapper">
      <div class="xtx_panel_header">
        <h3>最新专题</h3>
        <a href="javascript:;" class="more">
          查看全部<i class="sprites"></i>
        </a>
      </div>
      <div class="xtx_topic">
        <ul class="clearfix">
          <li>
            <a href="javascript:;">
              <!-- <img src="http://www.zgctws.org.cn/upload/goods/20231220/ac2a27f73f135b7974f970ea4122121e.png" alt=""> -->
              <div class="meta">
                <p class="title">
                  我 的 功 夫 梦 
                  <small>第二届大湾区青少年武术邀请赛竞赛</small>
                </p>
                <!-- <span class="price"><small>￥</small>29.9起</span> -->
              </div>
            </a>
            <div class="social">
              <span class="like">
                <i class="sprites"></i>1220
              </span>
              <span class="view">
                <i class="sprites"></i>1800
              </span>

              <span class="reply">
                <i class="sprites"></i>1220
              </span>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <!-- <img src="http://www.zgctws.org.cn/upload/goods/20231218/df536b25597eddbc0aaf5fdd7b29ad00.png" alt=""> -->
              <div class="meta">
                <p class="title">
                  中国传统武术协会通知
                  <small>优化传统武术协会晋级晋段考点申请</small>
                </p>
                <!-- <span class="price"><small>￥</small>29.9起</span> -->
              </div>
            </a>
            <div class="social">
              <span class="liked">
                <i class="sprites"></i>1220
              </span>
              <span class="view">
                <i class="sprites"></i>1800
              </span>

              <span class="reply">
                <i class="sprites"></i>1220
              </span>
            </div>
          </li>
          <li>
            <a href="javascript:;">
              <!-- <img src="http://www.zgctws.org.cn/static/wushu/no.jpg" alt=""> -->
              <div class="meta">
                <p class="title">
                  中华武术远传海外
                  <small>把少林功夫传到澳大利亚</small>
                </p>
                <!-- <span class="price"><small>￥</small>29.9起</span> -->
              </div>
            </a>
            <div class="social">
              <span class="like">
                <i class="sprites"></i>1220
              </span>
              <span class="view">
                <i class="sprites"></i>1800
              </span>

              <span class="reply">
                <i class="sprites"></i>1220
              </span>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <!-- 公共底部 -->
  <div class="xtx_footer clearfix">
    <div class="wrapper">
      <!-- 联系我们 -->
      <div class="contact clearfix">
        <dl>
          <dt>客户服务</dt>
          <dd class="chat">在线客服</dd>
          <dd class="feedback">问题反馈</dd>
        </dl>
        <dl>
          <dt>关注我们</dt>
          <dd class="weixin">公众号</dd>
          <dd class="weibo">微博</dd>
        </dl>
        <dl>
          <dt>下载APP</dt>
          <dd class="qrcode">
            <img src="./uploads/qrcode.jpg">
          </dd>
          <dd class="download">
            <span>扫描二维码</span>
            <span>立马下载APP</span>
            <a href="javascript:;">下载页面</a>
          </dd>
        </dl>
        <dl>
          <dt>服务热线</dt>
          <dd class="hotline">
            400-0000-000
            <small>周一至周日 8:00-18:00</small>
          </dd>
        </dl>
      </div>
    </div>
    <!-- 其它 -->
    <div class="extra">
      <div class="wrapper">
        <!-- 口号 -->
        <!-- <div class="slogan">
          <a href="javascript:;" class="price">价格亲民</a>
          <a href="javascript:;" class="express">物流快捷</a>
          <a href="javascript:;" class="quality">品质新鲜</a>
        </div> -->

        <div class="box-info2 w-100">

          <ul>
            <span>
              <a href="/index/about.html">关于协会</a>
            </span>
            <li>
              <a href='/index/about/13.html'>协会简介</a>
            </li>
            <li>
              <a href='/index/about/14.html'>协会章程</a>
            </li>
            <li>
              <a href='/index/about/15.html'>协会架构</a>
            </li>
            <li>
              <a href='/index/about/16.html'>武术文化</a>
            </li>

          </ul>

          <ul>
            <span>
              <a href="/index/news/2.html">赛事与培训</a>
            </span>
            <!--<li>-->
            <!--	<a href='/news/1.html'>全年计划</a>-->
            <!--</li>-->
            <li>
              <a href='/index/news/2.html'>公告通知</a>
            </li>
            <li>
              <a href='/index/news/3.html'>赛事通知</a>
            </li>
          </ul>


          <ul>
            <span>
              <a href="/index/xinwen.html">新闻资讯</a>
            </span>
            <li>
              <a href='/index/xinwen.html'>新闻资讯</a>
            </li>
          </ul>



          <ul>
            <span>
              <a href="/index/huiyuan.html">会员中心</a>
            </span>
            <li>
              <a href='/index/huiyuan/8.html'>单位会员</a>
            </li>
            <!--<li>-->
            <!--	<a href='/huiyuan/7.html'>个人会员</a>-->
            <!--</li>-->
            <li>
              <a href='/index/huiyuan/7.html'>入会申请</a>
            </li>
          </ul>

          <ul>
            <span>
              <a href="/index/mingren.html">名人堂</a>
            </span>
            <li>
              <a href='/index/mingren.html'>名人堂</a>
            </li>
          </ul>


          <ul>
            <span>
              <a href="/index/dangjian.html">政策法规</a>
            </span>
            <li>
              <a href='/index/dangjian.html'>政策法规</a>
            </li>
            <!--<li>-->
            <!--	<a href='/dangjian/2.html'>党建动态</a>-->
            <!--</li>-->
          </ul>


          <ul>
            <span>
              <a href="/index/job/1.html">官方武术</a>
            </span>
            <li>
              <a href='/index/job/1.html'>竞技武术</a>
            </li>
            <li>
              <a href='/index/job/2.html'>传统武术</a>
            </li>
            <li>
              <a href='/index/job/3.html'>外来武技</a>
            </li>
          </ul>
          <ul>
            <span>
              <a href="/index/chaxun.html">证书查询</a>
            </span>
            <!-- <br> -->
            <span>
              <a href="/index/contact.html">联系我们</a>
            </span>
          </ul>

        </div>
        <hr>
        <!-- 版权信息 -->
        <div class="copyright">
          <p>
            <a href="javascript:;">关于我们</a>
            <a href="javascript:;">帮助中心</a>
            <a href="javascript:;">售后服务</a>
            <a href="javascript:;">配送与验收</a>
            <a href="javascript:;">商务合作</a>
            <a href="javascript:;">搜索推荐</a>
            <a href="javascript:;">友情链接</a>
          </p>
          <p>CopyRight &copy; 软件工程-2022级</p>
        </div>
      </div>
    </div>
  </div>


  <script>

    // banner图
    // 1. 初始数据
    const data = [
      { url: './images/太极拳/69a38c5c06ff0225cf15a5d0e1ea1366.jpeg'},
      { url: './images/八卦拳/489953d81f33548a0d2df8fdbeb541e3.jpeg'},
      { url: './images/通背拳/f9d3286c8410e019fdf8c6e6054aa456.jpg'},
      { url: './images/散打/bd0d8c0b06b1bda53c9fab8039354b89.jpeg' },
      { url: './images/少林拳/de9d5931ce33a9e68082a6ee0776300f.jpeg'},
      { url: './images/咏春拳/561720efbf646e26031c24bac05d2c24.jpeg'},
    ]

    // let ban = document.querySelectorAll('.xtx_category_super li')

    const bgc = document.querySelector('.xtx_banner')

    // 右侧按钮
    let i = 0
    const next = document.querySelector('.next')

    next.addEventListener('click', function () {
      // console.log(11)
      i++
      // 1.6判断条件  如果大于8 就复原为 0
      // if (i >= 8) {
      //   i = 0
      // }
      i = i >= data.length ? 0 : i
      // 1.3 得到对应的对象
      // console.log(data[i])
      // 调用函数
      toggle()
    })


    //左侧按钮
    const prev = document.querySelector('.prev')

    prev.addEventListener('click', function () {
      i--
      // 判断条件  如果小于0  则爬到最后一张图片索引号是 7
      // if (i < 0) {
      //   i = 7
      // }
      i = i < 0 ? data.length - 1 : i
      // 1.3 得到对应的对象
      // console.log(data[i])
      // 调用函数
      toggle()
    })

 

    // 声明一个渲染的函数作为复用
    function toggle() {
      // 1.4 渲染对应的数据
      bgc.style.backgroundImage  = `url(${data[i].url})`
      // 1.5 更换小圆点    先移除原来的类名， 当前li再添加 这个 类名
      document.querySelector('.indicator .active').classList.remove('active')
      document.querySelector(`.indicator span:nth-child(${i + 1})`).classList.add('active')
      
      // 切换左侧状态栏
      document.querySelector('.xtx_category_super .active').classList.remove('active')
      document.querySelector(`.xtx_category_super li:nth-child(${i+1})`).classList.add('active')
    }


    // index 记录原本的位置
    let index = i;


      // 左侧列表监听事件，与img，小圆点绑定
      document.querySelector('.xtx_category_super').addEventListener('click',function(e){
        if (e.target.tagName === 'LI'|| e.target.tagName === 'A') {

          // 数组下标能将字符串类型转化为数字型
          // e.target.style.color = 'red'
          // let index = e.target.dataset.id
          // img.src = data[index].url
          // // console.log(index);
          // document.querySelector('.indicator .active').classList.remove('active')
          // // document.querySelector(`.indicator span:nth-child(${index + 1})`).classList.add('active')

          // const span = document.querySelectorAll('.indicator span')
          // span[index].classList.add('active')
          // // toggle()

          // const lis =document.querySelectorAll('.xtx_category_super li')
          // document.querySelector('.xtx_category_super .active').classList.remove('active')
          // lis[index].classList.add('active')

          // console.log(typeof(e.target.dataset.id));
          

          // 自定义属性的值必定为字符串类型（data-id="..."），得先转化成数字才能正常使用
          i = +e.target.dataset.id
          index = i
          toggle()
          console.log(index);
          

        } 
    })

    // 3. 自动播放模块
    let timerId = setInterval(function () {
      // 利用js自动调用点击事件  click()  一定加小括号调用函数
      next.click()
    }, 2000)

    // 4. 鼠标经过大盒子，停止定时器
    const xtx_banner = document.querySelector('.xtx_banner')
    // 注册事件
    xtx_banner.addEventListener('mouseenter', function () {
      // 停止定时器
      clearInterval(timerId)
    })

    const xtx_category = document.querySelector('.xtx_category')
    xtx_category.addEventListener('mouseenter', function () {
      // 停止定时器
      clearInterval(timerId)
    })

    // 5. 鼠标离开大盒子，开启定时器
    // 注册事件
    xtx_banner.addEventListener('mouseleave', function () {
      // 停止定时器
      if (timerId) clearInterval(timerId)
      // 开启定时器
      timerId = setInterval(function () {
        // 利用js自动调用点击事件  click()  一定加小括号调用函数
        next.click()
      }, 2000)
    })

    xtx_category.addEventListener('mouseleave', function () {
      // 停止定时器
      if (timerId) clearInterval(timerId)
      // 开启定时器
      timerId = setInterval(function () {
        // 利用js自动调用点击事件  click()  一定加小括号调用函数
        next.click()
      }, 2000)

    })

    
    // 鼠标悬浮模块
    const lis =document.querySelectorAll('.xtx_category_super li')
          // document.querySelector('.xtx_category_super .active').classList.remove('active')
          // lis[index].classList.add('active')
    index = document.querySelector('.xtx_category_super .active').dataset.id
    for(let k in lis){

      lis[k].addEventListener('mouseenter',function(){
          i = +k
          toggle()
      })

      lis[k].addEventListener('mouseleave',function(){
          i = +index 
          toggle()
      })
    }





    // document.querySelector('.xtx_category_super').addEventListener('mouseenter',function(e){
    //   if (e.target.tagName === 'LI') {
    //     // e.target.style.color = 'red'
    //     i=e.target.dataset.id
    //     toggle()
    //   }
    // })



    // 1、 获取第一个小li
    const li1 = document.querySelector('.xtx_navs li:first-child')
    const li2 = li1.nextElementSibling
    // 2. 最好做个渲染函数 因为退出登录需要重新渲染
    function render() {
      // 2.1 读取本地存储的用户名
      const uname = localStorage.getItem('xtx-uname')
      // console.log(uname)
      if (uname) {
        li1.innerHTML = `<a href="javascript:;"><i class="iconfont icon-user">${uname
          }</i></a>
        `
        li2.innerHTML = '<a href="javascript:;">退出登录</a>'
      } else {
        li1.innerHTML = '<a href="./login.html">请先登录</a>'
        li2.innerHTML = '<a href="./register.html">免费注册</a>'
      }
    }
    render()  // 调用函数

    // 2. 点击退出登录模块
    li2.addEventListener('click', function () {
      // 删除本地存储的数据
      localStorage.removeItem('xtx-uname')
      // 重新渲染
      render()
    })
  </script>
</body>

</html>